package qimao.com.edu.DTO;

import java.time.LocalDateTime;

public class BookDTO {
	// 基本信息
	private int bookId;			   // 书id
    private String bookName;       // 书名
    private String bookImg;        // 图书封面图片URL
    private String bookType;       // 图书类型
    private String bookTypeMajor;  // 图书大类型
    private String bookState;      //  图书状态是否通过审核
    private String bookIntroduction; // 图书简介
    private Integer wordCount;  // 字数
    private int ChapterId;		//章节数
    
    private String protagonist;    // 主角名称
    private String bookWriter;     // 作者名称
    
    private int bookWriterId;		// 作者名称id
    private String is_finished;    // 是否完结 图书状态（连载中/已完结）
    private LocalDateTime updateTime;       // 更新时间
//    private LocalDateTime createTime;       // 创建时间
//    private LocalDateTime endTime;          // 完结时间

    
	public BookDTO() {
		super();
	}
	public BookDTO(int bookId, String bookName, String bookImg, String bookType, String bookTypeMajor, String bookState,
			String bookIntroduction, Integer wordCount, int chapterId, String protagonist, String bookWriter,
			int bookWriterId, String is_finished, LocalDateTime updateTime) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.bookImg = bookImg;
		this.bookType = bookType;
		this.bookTypeMajor = bookTypeMajor;
		this.bookState = bookState;
		this.bookIntroduction = bookIntroduction;
		this.wordCount = wordCount;
		ChapterId = chapterId;
		this.protagonist = protagonist;
		this.bookWriter = bookWriter;
		this.bookWriterId = bookWriterId;
		this.is_finished = is_finished;
		this.updateTime = updateTime;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getBookImg() {
		return bookImg;
	}
	public void setBookImg(String bookImg) {
		this.bookImg = bookImg;
	}
	public String getBookType() {
		return bookType;
	}
	public void setBookType(String bookType) {
		this.bookType = bookType;
	}
	public String getBookTypeMajor() {
		return bookTypeMajor;
	}
	public void setBookTypeMajor(String bookTypeMajor) {
		this.bookTypeMajor = bookTypeMajor;
	}
	public String getBookState() {
		return bookState;
	}
	public void setBookState(String bookState) {
		this.bookState = bookState;
	}
	public String getBookIntroduction() {
		return bookIntroduction;
	}
	public void setBookIntroduction(String bookIntroduction) {
		this.bookIntroduction = bookIntroduction;
	}
	public Integer getWordCount() {
		return wordCount;
	}
	public void setWordCount(Integer wordCount) {
		this.wordCount = wordCount;
	}
	public int getChapterId() {
		return ChapterId;
	}
	public void setChapterId(int chapterId) {
		ChapterId = chapterId;
	}
	public String getProtagonist() {
		return protagonist;
	}
	public void setProtagonist(String protagonist) {
		this.protagonist = protagonist;
	}
	public String getBookWriter() {
		return bookWriter;
	}
	public void setBookWriter(String bookWriter) {
		this.bookWriter = bookWriter;
	}
	public int getBookWriterId() {
		return bookWriterId;
	}
	public void setBookWriterId(int bookWriterId) {
		this.bookWriterId = bookWriterId;
	}
	public String getIs_finished() {
		return is_finished;
	}
	public void setIs_finished(String is_finished) {
		this.is_finished = is_finished;
	}
	public LocalDateTime getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "BookDTO [bookId=" + bookId + ", bookName=" + bookName + ", bookImg=" + bookImg + ", bookType="
				+ bookType + ", bookTypeMajor=" + bookTypeMajor + ", bookState=" + bookState + ", bookIntroduction="
				+ bookIntroduction + ", wordCount=" + wordCount + ", ChapterId=" + ChapterId + ", protagonist="
				+ protagonist + ", bookWriter=" + bookWriter + ", bookWriterId=" + bookWriterId + ", is_finished="
				+ is_finished + ", updateTime=" + updateTime + "]";
	}
	
}
